Skip to content

CROSSLINK-267 Add local supply - #679

Merged
jakub-id merged 7 commits into
mainfrom
CROSSLINK-267
Jul 23, 2026
Merged

CROSSLINK-267 Add local supply#679
jakub-id merged 7 commits into
mainfrom
CROSSLINK-267

Conversation

@JanisSaldabols

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 22, 2026 04:59
Comment thread broker/patron_request/service/action.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Local Supply” path to the patron request state model so requests that can be fulfilled locally can be handled via dedicated actions/events, while keeping the ISO18626 workflow/state-machine consistent.

Changes:

  • Added a new LOCAL_SUPPLY requester state (with fill-locally, cancel, cannot-supply-locally actions) to the returnables state model.
  • Introduced a new supplier message event expect-to-supply-local and mapped it in message handling when the supplying agency is the same as the requester.
  • Extended built-in capabilities and tests to include the new state/action/event and added action-service support for fill-locally.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
misc/state-models.yaml Adds LOCAL_SUPPLY state and expect-to-supply-local event to the source state model.
broker/patron_request/service/statemodels/state-models.json Keeps the generated state-model JSON in sync with the YAML changes.
broker/patron_request/service/statemodel_test.go Asserts capabilities include LOCAL_SUPPLY and that the returnables model contains the new state.
broker/patron_request/service/statemodel_capabilities.go Adds constants/capabilities for the new state, actions, and message event.
broker/patron_request/service/message-handler.go Maps ExpectToSupply to a dedicated local event when supplier == requester.
broker/patron_request/service/action.go Adds borrower-side handlers for local supply actions, including fillLocallyBorrowingRequest.
broker/patron_request/service/action_test.go Adds test coverage for invoking fill-locally and extends LMS adapter mock to supply locations.
broker/patron_request/service/action_mapping_test.go Ensures action mapping includes the new LOCAL_SUPPLY borrower actions.

Comment thread broker/patron_request/service/action.go
Comment thread misc/state-models.yaml Outdated
Comment thread broker/patron_request/service/statemodels/state-models.json Outdated
Comment thread broker/patron_request/service/message-handler.go
Comment thread broker/patron_request/service/statemodel_capabilities.go
Comment thread broker/patron_request/service/action.go Outdated
Comment thread broker/patron_request/service/action.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

@jakub-id
jakub-id merged commit 00acdaf into main Jul 23, 2026
7 checks passed
@jakub-id
jakub-id deleted the CROSSLINK-267 branch July 23, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants